\f0\fs28 is responsible for the menu cell update, where
\f2\fs24 aSelector
\f0\fs28 will be your own update method, and
\f2\fs24 aMenu
\f0\fs28 the menu you want to update. This method has to be called inside
\f2\fs24 appDidInit
\f0\fs28 because NXApp is responsible for the update.\
Doing so makes your program more efficient, since it needs to be done only once.\
\
Q: Should I use the application method
\f2\fs24 setAutoupdate:(BOOL)flag
\f0\fs28 or the menu
\f2\fs24 update
\f0\fs28 method for updating the menu items? What are the trade offs?\
\
\pard\tx520\tx1060\tx1600\tx2120\tx2660\tx3200\tx3720\tx4260\tx4800\tx5320\fc0 A: The application method
\f2\fs24 setAutoupdate:YES
\f0\fs28 causes the menus to stay up to date all the time (i.e. it only updates them when they are on-screen). Calling
\f2\fs24 update
\f0\fs28 directly everytime something changes might be a lot of extra work for nothing. However, if things rarely change in the menu, it might be worth not incurring the window list traversal